﻿using Enter.Admin.Entities;
using Enter.Admin.Utils;
//using Hangfire.Dashboard;

namespace Enter.Admin.Filters
{
    //public class HangfireDashboardAuthorizationFilter : IDashboardAuthorizationFilter
    //{
    //    public bool Authorize(DashboardContext context)
    //    {
    //        var httpContext = context.GetHttpContext();
    //        if (httpContext.Session.Get<Employ>() == default(Employ))
    //        {
    //            return false;
    //        }
    //        return true;
    //        //return httpContext.User.Identity.IsAuthenticated;
    //    }
    //}
}
